<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <com></com>
    </div>
    <script src="../vue.js"></script>
    <script>
        let com={
            render:function(createElement){
                return createElement('ul',[
                    createElement('li',{
                        class:{a:true,b:true},
                        //style:'display:none',
                        style:{
                            color:'red',
                            fontSize:'18px'
                        },
                        attrs:{
                            id:'firstLi',
                        },
                    },'新闻'),
                    createElement('li','娱乐'),
                    createElement('li','体育'),
                    createElement('li','社会'),
                ])
            }
        }
        new Vue({
            el:'#app',
            components: {
                com,
            }
        })
    </script>
</body>
</html>